#
#   install.py
#   blog
#
#   Created by luoxh on 2019-07-13-17:50.
#   Copyright © 2019 luoxh. All rights reserved.
#


import os

from src.config import BaseConfig


def print_equal_sign():
    print('====================')


print(f'Deleting the DIST_DIRS floder, The Path is {BaseConfig.DIST_DIRS}. And the build is {BaseConfig.BUILD_DIRS}')
# os.system(f'rm -rf {BaseConfig.DIST_DIRS}')
# os.system(f'rm -rf {BaseConfig.BUILD_DIRS}')
print_equal_sign()

print_equal_sign()
print(f'Creating the apps... :) Please wait...')
print_equal_sign()

os.system(f'pyinstaller -F -y --clean {BaseConfig.APP_NAME}.py')
os.system(f'pyinstaller -F -y --clean {BaseConfig.APP_NAME}.spec')
os.system(f'rm -rf {BaseConfig.APP_NAME}.spec')
